chrome.extension.sendMessage({hash: window.location.hash});

window.close();